README for replication files

----------------------------

ARTICLE: �Behavioral Consequences of Open Candidate Recruitment�
AUTHORS: Jochen Rehmert

----------------------------

SOFTWARE:

	R version 3.5.2
		
----------------------------

FILE LIST:

	kobo_activity.dta: Data-set to replicate Tables A2 to A16, A18 and to produce Figures 2a, 2b, 3a, 3b, 4a and 4b.
	returnData.dta: Data-set to replicate Table 1, A23 and A24 and to produce Figures 1a and 1b.
	volatility.dta: Data-set to replicate Table A17.
	pq_content.dta: Data-set to replicate Tables A20 and A21
	words_MP.dta: Data-set to replicate Table A22.
			
	Replication_ReturnAnalysis.R: R code that produces Figures 1a and 1b as well as Tables 1, A23 and A24.
	Replication_Activity.R: R code that produces Tables A2 to A16 as well as Figures 2a, 2b, 3a, 3b, 4a and 4b.
	Replication_CompetingNextElection.R: R Code that produces Table A18.
	Replication_volatility.R: R code to produce Table A17.
	Replication_PQContent.R: R code to produce Table A20, A21 and A22.
	
kobo_activity.dta:
	id: Unique Identifier
	period: Electoral period
	election: election year
	candidate_id: Candidate identifier
	name_jpn: Candidate Name (japanese)
	name_engl: Candidate name (english)
	speech_honkaigi: number of speeches in the plenary
	speech_honkaigi_length: number of characters in (all) speeches
	iinkai_attendance: attendance of committee sessions
	iinkai_director: committee board of directors
	speech_iinkai: number of speeches in committee
	speech_iinkai_length: number of characters in (all) committee speeches
	questions: number of parliamentary questions
	pty_voteshare_t0: Party's previous voteshare in district
	kobo_district: district that has or will see open recruitment
	pty_voteshare_t0_before_kobo: Party's voteshare in district in election prior to open recruitment
	party_office: MP holds party office
	executive_office: MP holds executive office
	parliamentary_office: MP holds parliamentary office
	speaker: MP is speaker of parliament
	drop_out: MP drops out of parliament mid-way
	replacement: MP enters parliament mid-way
	num_questions: number of parliamentary questions
	num_pmbs_initiated: number of PMBs initiated
	num_pmb_cosponsored: number of PMBs cosponsored
	come_home: categorical frequency of returning to district
	pmb_ini_agriculture: number of initiated PMbs referred to committee of agriculture 	
        pmb_ini_cabinet: number of initiated PMbs referred to the cabinet committee                 
 	pmb_ini_steering: number of initiated PMbs referred to the steering committee             
	pmb_ini_econ: number of initiated PMbs referred to committee on economics                   
 	pmb_ini_culture: number of initiated PMbs referred to committee on culture           
   	pmb_ini_environment: number of initiated PMbs referred to committee on environment        
 	pmb_ini_finance: number of initiated PMbs referred to committee on finance    
        pmb_ini_health: number of initiated PMbs referred to committee on health   
        pmb_ini_internal: number of initiated PMbs referred to committee on internal affairs             
 	pmb_ini_judicial: number of initiated PMbs referred to committee on judicial affairs     
        pmb_ini_infra: number of initiated PMbs referred to committee on infrastructure    
        pmb_ini_security: number of initiated PMbs referred to committee on national security 
	pmb_ini_ethics: number of initiated PMbs referred to committee on political ethics               
	pmb_ini_adm_reform: number of initiated PMbs referred to committee on admin reform         
   	pmb_ini_consumer: number of initiated PMbs referred to committee on consumer protection                
 	pmb_ini_disaster: number of initiated PMbs referred to committee on disaster prevention    
        pmb_ini_terror: number of initiated PMbs referred to committee on international terror and piracy  
        pmb_ini_postal: number of initiated PMbs referred to committee on postal reform                  
 	pmb_ini_reconstruction: number of initiated PMbs referred to committee on reconstruction  
      	pmb_ini_social_security: number of initiated PMbs referred to committee of social security
      	pmb_ini_constitution: number of initiated PMbs referred to committee on the constitution
 	pmb_ini_revitalization: number of initiated PMbs referred to committee for regional revitalization   
    	pmb_ini_withdrawn: number of initiated PMbs withdrawn            
    	pmb_co_agriculture: number of cosponsored PMbs referred to committee of agriculture 	              
 	pmb_co_cabinet: number of cosponsored PMbs referred to the cabinet committee                        
     	pmb_co_steering: number of cosponsored PMbs referred to the steering committee             
     	pmb_co_econ: number of cosponsored PMbs referred to committee on economics                     
 	pmb_co_culture: number of cosponsored PMbs referred to committee on culture             
      	pmb_co_environment: number of cosponsored PMbs referred to committee on environment         
      	pmb_co_finance: number of cosponsored PMbs referred to committee on finance                  
 	pmb_co_health: number of cosponsored PMbs referred to committee on health               
     	pmb_co_internal: number of cosponsored PMbs referred to committee on internal affairs             
     	pmb_co_judicial: number of cosponsored PMbs referred to committee on judicial affairs                     
 	pmb_co_infra: number of cosponsored PMbs referred to committee on infrastructure              
      	pmb_co_security: number of cosponsored PMbs referred to committee on national security            
      	pmb_co_ethics: number of cosponsored PMbs referred to committee on political ethics                  
 	pmb_co_adm_reform: number of cosponsored PMbs referred to committee on admin reform          
      	pmb_co_consumer: number of cosponsored PMbs referred to committee on consumer protection            
      	pmb_co_disaster: number of cosponsored PMbs referred to committee on disaster prevention                 
 	pmb_co_terror: number of cosponsored PMbs referred to committee on international terror and piracy              
      	pmb_co_postal: number of cosponsored PMbs referred to committee on postal reform              
      	pmb_co_reconstruction: number of cosponsored PMbs referred to committee on reconstruction           
 	pmb_co_social_security: number of cosponsored PMbs referred to committee of social security     
      	pmb_co_constitution: number of cosponsored PMbs referred to committee on the constitution         
     	pmb_co_revitalization: number of cosponsored PMbs referred to committee for regional revitalization            
	pmb_co_withdrawn: number of cosponsored PMbs withdrawn               
     	party_id: Party name                  
       	government: binary indicator for government status                      	
	prefecture: name of prefecture            
        district: district number          
        block_id: PR block name                        
 	pure_pr: binary indicator for pure PR candidates                
        pure_smd: binary indicator for pure SMD candidates           
        incumbency: factor variable for candidate incumbency                      
 	term: Candidate Seniority, number times elected                   
        sex: Candidate gender                
        age: candidate age                             
	result: factor variable of electoral result                 
        zombie_now: MP is elected as district-loser list-winner         
        zombie_before: MP was previously elected as district-loser list-winner                   
 	first_time: candidate is first-time MP              
        kobo: candidate was recruited through open recruitment                   
        distbirth: Candidate is born in electoral district                      
 	prefbirth: Candidate is born in prefecture with electoral district            
        localleg: Candidate previously was member of local assembly      
        prefleg: Candidate previously was member of prefectural assembly                        
	mayor: Candidate previously was mayor             
        governor: Candidate previously was prefectural governer     
        hoc: Candidate previously was member in house of councillors                             
 	list_rank: candidate's party list rank               
        voteshare: candidate voteshare           
        rank_vote: candidate's voteshare rank in district                     	
	margin: Vote margin                 
        smd_premiere: Candidate competes in district for the first time       
        pr_block: PR block name                         
	pr_id: PR block id
        prefecture_id: prefecture id      
        urban: categorical values for district's degree of urbanity                          	
	did: densely inhabited district                     
        distance_diet: district's distance from parliament building, in km        
        turnout: turnout in district                         
	electorate_ttl: total electorate in district           
        mapapportionment: malapportionment of electoral district       
        powerplant: binary indicator whether nuclear power plant is present in district                      
	dist_powerplant: district's distance to closest nuclear power plant           
        dist_daiichi: district's distance to Fukushima nuclear power plant             
        dist_ooi: district's distance to Ooi nuclear power plant                        
	pop_ttl: total number of people in district                   
        _59_age: number of people in district aged 54-59                 
        _64_age: number of people in district aged 60-64                         
	_69_age: number of people in district aged 65-69                   
        _74_age: number of people in district aged 70-74                  
        _79_age: number of people in district aged 75-79                         
	_84_age: number of people in district aged 80-84                   
       	_89_age: number of people in district aged 85-89                   
       	_94_age: number of people in district aged 90-94                         
	_99_age: number of people in district aged 95-99                    
      	over_100: number of people in district aged over 100                   
      	average_age: average age in district                     
	occupation_ttl_2010: total number of labor force in district according to 2010 census       
	agriculture: total number of labor force in agriculture             
	agri_2: total number of labor force in agriculture incl. forestry and fisheries                          
	fishery: total number of labor force in fisheries                          
  	mining: total number of labor force in mining
	construction: total number of labor force in construction industry
	manufacturing: total number of labor force in manufacturing
     	utilities: total number of labor force in utilities
    	information_communications_indus: total number of labor force in information and communication services
	transportation_postal: total number of labor force in transportation and postal services
	wholesale_retail: total number of labor force in wholesale and retail
	finance_insurance: total number of labor force in finances and insurance
	real_estate: total number of labor force in real estates
	research_technology: total number of labor force in research and technology
	hotel_restaurant: total number of labor force in lodging industries
	entertainment: total number of labor force in entertainment
	education: total number of labor force in education
	medical_care_welfare: total number of labor force in medical and welfare
	composite_service: total number of labor force in composite services           
	service_industry: total number of labor force in service industries            
	public_office: total number of labor force in public offices
	other: total number of labor force in other categories
	pty_office_t0: MP held party office previously              
	ex_office_t0: MP held executive office previously                   
	parl_office_t0: MP held parliamentary office previously          
	reelected: binary indicator whether MP is reelected next election           
	e2003: binary indicator for 2003 election                  
	e2005: binary indicator for 2005 election                           
	e2009: binary indicator for 2009 election             
	e2012: binary indicator for 2012 election          
	incumbent: binary indicator whether candidate is incumbent                       
	freshman: binary indicator whether candidate is new-timers
	kobogov: interaction term indicating kobo recruited government MPs            
	koboterm: interaction term between kobo recruited MPs and term in parliament                        
	district_name: name of electoral district           
	num_pq: number of parlaimentary questions (PQs)        
	aichi: number of PQs mentioning the prefecture                           
	akita: number of PQs mentioning the prefecture                   
	aomori: number of PQs mentioning the prefecture        
	chiba: number of PQs mentioning the prefecture                           
	ehime: number of PQs mentioning the prefecture                    
	fukui: number of PQs mentioning the prefecture          
	fukuoka: number of PQs mentioning the prefecture                         
	fukushima: number of PQs mentioning the prefecture               
	gifu: number of PQs mentioning the prefecture          
	gunma: number of PQs mentioning the prefecture                           
	hiroshima: number of PQs mentioning the prefecture              
	hokkaido: number of PQs mentioning the prefecture    
	hyogo: number of PQs mentioning the prefecture                           
	ibaraki: number of PQs mentioning the prefecture               
	ishikawa: number of PQs mentioning the prefecture      
	iwate: number of PQs mentioning the prefecture                           
	kagawa: number of PQs mentioning the prefecture             
	kagoshima: number of PQs mentioning the prefecture    
	kanagawa: number of PQs mentioning the prefecture                        
	kochi: number of PQs mentioning the prefecture               
	kumamoto: number of PQs mentioning the prefecture    
	kyoto: number of PQs mentioning the prefecture                           
	mie: number of PQs mentioning the prefecture                    
 	miyagi: number of PQs mentioning the prefecture      
	miyazaki: number of PQs mentioning the prefecture                        
	nagano: number of PQs mentioning the prefecture                 
	nagasaki: number of PQs mentioning the prefecture    
	nara: number of PQs mentioning the prefecture                            
	niigata: number of PQs mentioning the prefecture                
	oita: number of PQs mentioning the prefecture        
	okayama: number of PQs mentioning the prefecture                         
	okinawa: number of PQs mentioning the prefecture                
	osaka: number of PQs mentioning the prefecture       
	saga: number of PQs mentioning the prefecture                            
	saitama: number of PQs mentioning the prefecture            
	shiga: number of PQs mentioning the prefecture    
	shimane: number of PQs mentioning the prefecture                         
	shizuoka: number of PQs mentioning the prefecture            
	tochigi: number of PQs mentioning the prefecture    
	tokushima: number of PQs mentioning the prefecture                       
	tokyo: number of PQs mentioning the prefecture                
	tottori: number of PQs mentioning the prefecture   
	toyama: number of PQs mentioning the prefecture                          
	wakayama: number of PQs mentioning the prefecture              
	yamagata: number of PQs mentioning the prefecture    
	yamaguchi: number of PQs mentioning the prefecture                       
	yamanashi: number of PQs mentioning the prefecture             
	constituency_pq_share: share of constituency-related PQs     
	constituency_pq: number of constituency-related PQs (matched by MPs prefecture and mentioning of that prefecture in PQ)                 
	num_pqs: number of PQs             
	num_infra: number of PQs mentioning infrastructure related token  
	num_agri: number of PQs mentioning agriculture related token                        
	competed_t1: candidate competes in next election
	
returnData.dta:
	id: Unique Identifier
	party_id: Party Name
	incumbency: Incumbency Status of Candidate
	distance_diet: Electoral District's Distance from the Lower House, in km
	term: Seniority measured by the times being elected
	kobo: Binary indicator of open recruitment background
	distbirth: Binary indicator whether candidate was born in electoral district
	prefbirth: Binary indicator whether candidate was born in prefecture in which her district is located in
	come_home: Categorical indicator for frequency of returning to district
	party_office: Binary indicator whether candidate holds party office
	executive_office: Binary indicator whether candidate holds executive office
	margin: Electoral margin of candidate
	pty_voteshare_t0: Party's voteshare in district in previous election
	volatility: Electoral volatility in electoral district
	enc: Effective number of candidates in district
	pure_smd: Candidate is only competing in the district, not on the party-list
		
volatility.dta:
	pid: Candidate Identifier
	year: Election year
	party_en: Party Name
	kobo: Binary indicator of open recruitment background
	enc_t0: Effective number of candidates in district the previous election
	volatility_t0: Electoral volatility in electoral district the previous election
	district_margin_t0: Margin between winner and runner up in the previous election
	kuname: District name

pq_content.dta:
	period: electoral period
	candidate_id: candidate identifier
	num_pqs: number of PQs
	num_infra: number of tokens pertaining to infrastructure
	num_agri: number of tokens pertaining to agriculture

words_MP.dta:
	candidate_id: candidate identifier
	election: election year	
	rank: frequency rank of token by MP
	feature: token
	frequency: number of occurences
	docfreq: number of PQs
	period: electoral period
	remainder as in kobo_activity.dta